import request from '@/utils/request'
export default {
  getConOptions (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/getConOptions',
      method: 'post',
      data
    })
  }  ,
  getPersonalAddressBook (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/getPersonalAddressBook',
      method: 'post',
      data
    })
  }  ,getPersonalAddressBookMember (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/getPersonalAddressBookMember',
      method: 'post',
      data
    })
  }  ,
  addPersonalAddressBook (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/addPersonalAddressBook',
      method: 'post',
      data
    })
  }  ,  updatePersonalAddressBook (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/updatePersonalAddressBook',
      method: 'post',
      data
    })
  }  ,  deletePersonalAddressBook (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/deletePersonalAddressBook',
      method: 'post',
      data
    })
  }, getFleetAndGroupAndSub (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getFleetAndGroupAndSub',
      method: 'post',
      data
    })
  },
  /**
   * 添加自定义编组
   * @param data
   */
  addCustomizeGrp (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/addCustomizeGrp',
      method: 'post',
      data
    })
  },
  /**
   * 自定义编组添加成员
   * @param data
   */
  addCustomizeGrpMem (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/addCustomizeGrpMem',
      method: 'post',
      data
    })
  },
  /**
   * 自定义编组查询组成员
   * @param data
   */
  queryCustomizeGrpMem (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/queryCustomizeGrpMem',
      method: 'post',
      data
    })
  }
}
